home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winword / booklet.zip / BOOKLET.MAN < prev   
Internet Message Format  |  1991-10-21  |  4KB

  1. From: ebergman@isis.cs.du.edu (Eric Bergman-Terrell)
  2. Newsgroups: comp.windows.ms,comp.windows.ms.programmer,comp.lang.postscript,comp.sources.ibm.pc
  3. Subject: Print Booklets with Word for Windows without Paste-up (2nd try)
  4. Date: 20 Oct 91 18:15:25 GMT
  5. Organization: Nyx, Public Access Unix at U. of Denver Math/CS dept.
  6.  
  7.  
  8.  
  9.      ***** Print booklets with Word for Windows without Paste-up *****
  10.  
  11.      To print a booklet, you need to print two pages on each side of 8 1/2" *
  12.      11" pages in landscape mode, and then fold the pages and staple them down
  13.      the middle.  For example, if you had a 64 page booklet, you would need
  14.      originals like the following:
  15.  
  16.                11"
  17.  
  18.      +----------+----------+
  19.      | xxxxxxxx | xxxxxxxx |
  20.      | xxxxxxxx | xxxxxxxx |
  21.      | xxxxxxxx | xxxxxxxx | 8.5"
  22.      | xxxxxxxx | xxxxxxxx |
  23.      |   64     |    1     |
  24.      +----------+----------+
  25.  
  26.      +----------+----------+
  27.      | xxxxxxxx | xxxxxxxx |
  28.      | xxxxxxxx | xxxxxxxx |
  29.      | xxxxxxxx | xxxxxxxx |
  30.      | xxxxxxxx | xxxxxxxx |
  31.      |    2     |   63     |
  32.      +----------+----------+
  33.  
  34.      +----------+----------+
  35.      | xxxxxxxx | xxxxxxxx |
  36.      | xxxxxxxx | xxxxxxxx |
  37.      | xxxxxxxx | xxxxxxxx |
  38.      | xxxxxxxx | xxxxxxxx |
  39.      |   62     |    3     |
  40.      +----------+----------+
  41.  
  42.      etc.
  43.  
  44.      If you want to do this, here's what you need:
  45.  
  46.      1.   Word for Windows 1.1a (can't guarantee that earlier or later
  47.           versions will work).
  48.  
  49.      2.   A PostScript printer or emulation software.
  50.  
  51.      3.   The PostScript driver PSCRIPT.DRV dated 9/20/90 (if you have
  52.           an earlier version, get the new one from the Supplemental
  53.           Driver Library sold by Microsoft, part number 17754.  The
  54.           Supplemental Driver Library is not very expensive.
  55.  
  56.      4.   The C program at the end of this posting.
  57.  
  58.      5.   A C compiler.
  59.  
  60.      Here's how you do it:
  61.  
  62.      1.   Compile the C Program.
  63.  
  64.      2.   Go to the control panel and configure your printer so that
  65.           printouts go to a file rather than to the printer.
  66.  
  67.      3.   Go to Word for Windows, and in the Format Document dialog
  68.           box, specify a Width of 11", a Height of 8.5", and a Gutter
  69.  
  70.  
  71.  
  72.           of 5.5".
  73.  
  74.      4.   In Word for Windows, go to the File Printer Setup item and
  75.           specify Landscape orientation.
  76.  
  77.      5.   Preview the document to make sure that the pages are formatted
  78.           correctly.  Odd pages should be on the right, even pages on the left.
  79.  
  80.      6.   Print the document to a file (e.g. BOOKLET.TMP).
  81.  
  82.      7.   Run the program from MS-DOS.  Argument 1 is the input
  83.           file, argument 2 is the output file:
  84.  
  85.           booklet.exe booklet.tmp booklet.prn
  86.  
  87.      8.   Print the output file (e.g. copy BOOKLET.PRN prn:).
  88.  
  89.      This may sound like a lot of work, but at least in my case I expect to save
  90.      about $200.00 on laser typesetting (half the pages need to be printed) and
  91.      especially paste-up (which isn't necessary anymore).
  92.  
  93.      The program is written for the Borland C++ 2.0 compiler.  If you're using a
  94.      non-Borland compiler, you'll want to remove the line starting with "extern
  95.      unsigned _stklen", which is used to allocate a big enough stack.  If you're
  96.      using another driver, you'll need to modify (at least) the PAGE_BEGIN
  97.      macro.
  98.  
  99. [program code deleted]
  100.  
  101.      The program finds the start of each page in the document, pads the number
  102.      of pages up so that it's evenly divisible by 4, outputs the header, then
  103.      outputs the appropriate pairs of pages, with some of the page-ejects
  104.      removed so the pairs of pages are "double-exposures".
  105.  
  106.      If you give this a try, let me know how it works out.
  107.  
  108.      Eric Bergman-Terrell
  109.  
  110.  
  111.